package com.qolome.knowledge.design.pattern.adapter.demo.passport;

import com.qolome.knowledge.design.pattern.adapter.demo.passport.adapters.ILoginAdapter;
import com.qolome.knowledge.design.pattern.adapter.demo.passport.adapters.LoginForQQAdapter;
import com.qolome.knowledge.design.pattern.adapter.demo.passport.adapters.LoginForTelAdapter;


public class Test {
    public static void main(String[] args) {

        PassportService passportService = new PassportService();
        ILoginAdapter qqAdapter = new LoginForQQAdapter(passportService);
        ILoginAdapter telAdapter = new LoginForTelAdapter(passportService);
        qqAdapter.login("QQ", qqAdapter);
        telAdapter.login("18888888888", telAdapter);

    }
}
